package com.ruoyi.data.service;

import com.ruoyi.data.domain.TdataRtRs;
import com.ruoyi.data.domain.TdataRtRsDay;
import com.ruoyi.data.domain.TdataRtRsHour;

import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.List;

public interface ITdataRtRsService {

    List<TdataRtRs> selectRtRsList(TdataRtRs record);

    void insertList(List<TdataRtRs> records);

    void updateByRoomIdSelective(TdataRtRs record);

    BigDecimal selectTodayTotalRs();

    BigDecimal selectYesterdayTotalRs();

    BigDecimal selectYesterdayRs();

    BigDecimal selectMonthEq();

    BigDecimal selectLastMonthEq();

    void refresh(List<TdataRtRs> records);

    List<TdataRtRs> selectRtRsDay(LocalDate date);

    List<TdataRtRs> selectRtRsHour(String date);

    void insertRtRsDay(List<TdataRtRsDay> records);

    void insertRtRsHour(List<TdataRtRsHour> records);

    void insertSelective(TdataRtRs record);

    void deleteByRoomIds(List<String> roomIds);

    BigDecimal selectLoopEqByRoomIdDt(String roomId, LocalDate dt);

    BigDecimal selectLoopEqByRoomIdDtTime(String roomId, LocalDateTime dt);
}
